package com.tn.exam.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * InfoRelationship entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "info_relationship")
public class InfoRelationship extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer relationshipId;
	private Integer relationshipUserId;
	private Integer relationshipRefId;
	private Date begintime;
	private Date endtime;

	// Constructors

	/** default constructor */
	public InfoRelationship() {
	}

	/** full constructor */
	public InfoRelationship(Integer relationshipUserId,
			Integer relationshipRefId, Date begintime, Date endtime) {
		this.relationshipUserId = relationshipUserId;
		this.relationshipRefId = relationshipRefId;
		this.begintime = begintime;
		this.endtime = endtime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "relationship_id", unique = true, nullable = false)
	public Integer getRelationshipId() {
		return this.relationshipId;
	}

	public void setRelationshipId(Integer relationshipId) {
		this.relationshipId = relationshipId;
	}

	@Column(name = "relationship_user_id", nullable = false)
	public Integer getRelationshipUserId() {
		return this.relationshipUserId;
	}

	public void setRelationshipUserId(Integer relationshipUserId) {
		this.relationshipUserId = relationshipUserId;
	}

	@Column(name = "relationship_ref_id", nullable = false)
	public Integer getRelationshipRefId() {
		return this.relationshipRefId;
	}

	public void setRelationshipRefId(Integer relationshipRefId) {
		this.relationshipRefId = relationshipRefId;
	}

	@Column(name = "begintime", nullable = false, length = 19)
	public Date getBegintime() {
		return this.begintime;
	}

	public void setBegintime(Date begintime) {
		this.begintime = begintime;
	}

	@Column(name = "endtime", nullable = false, length = 19)
	public Date getEndtime() {
		return this.endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

}